package com.example.neusoftfood_828lhl.model;

import com.example.neusoftfood_828lhl.common.Constants;
import com.example.neusoftfood_828lhl.listener.RetrofitListener;
import com.example.neusoftfood_828lhl.service.ShopService;

import retrofit2.Call;

public class ShopModel extends RetrofitBaseModel{
    private ShopService shopService;
    public ShopModel(){
        this.shopService = retrofit.create(ShopService.class);
    }
    public void getAllShop(RetrofitListener listener){
        Call call = shopService.getAllShops();
        bindCallback(call,listener, Constants.GETALLSHOP);
    }
}
